package classdemo;

class dog{
    public String name ;
    public int age;
    void bate(){
        System.out.println(name+"在旺旺叫....");
    }
}
public class demo1 {
    public static void main(String[] args) {
        dog dog1 = new dog();
        dog1.age = 10;
        dog1.name = "阿白";
        dog1.bate();
    }
}
